@echo off
:again
echo migration remove ? n no other yes
set /p nr=
if "%nr%" == "" (
    set "nr=y"
)
if "%nr%" == "n" goto next ^
if not "%nr%" == "n" ( 
	echo dotnet ef migrations remove -f
	dotnet ef migrations remove -f
)

::goto again

:next

echo Input migration name

set /p varname=

echo dotnet ef migrations add %varname%
dotnet ef migrations add %varname%

echo database update ? n no other yes
set /p nu=
if "%nu%" == "" (
    set "nu=y"
)
if %nu% == n (
	echo successed
) ^
else ( 
	echo dotnet ef database update
	dotnet ef database update
)

:: echo dotnet ef database update
:: dotnet ef database update

pause
